package com.guigu.pd.aggregation.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.Query;

import com.guigu.pd.aggregation.dao.DriverJobDao;
import com.guigu.pd.aggregation.entity.DriverJobEntity;
import com.guigu.pd.aggregation.service.DriverJobService;


@Service("driverJobService")
public class DriverJobServiceImpl extends ServiceImpl<DriverJobDao, DriverJobEntity> implements DriverJobService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DriverJobEntity> page = this.page(
                new Query<DriverJobEntity>().getPage(params),
                new QueryWrapper<DriverJobEntity>()
        );

        return new PageUtils(page);
    }

}